-- GENERATED SPELL FOR [Arconus the Insatiable] --


function spell0_20554(pUnit, Event) --@Consume Shadows,Self--
pUnit:FullCastSpellOnTarget(36472,pUnit)
pUnit:RegisterEvent('Sorts_20554', 10000, 1)
end

function spell1_20554(pUnit, Event) --@Desecration,Self--
pUnit:FullCastSpellOnTarget(36473,pUnit)
pUnit:RegisterEvent('Sorts_20554', 8000, 1)
end

function Sorts_20554(pUnit, Event)
local choix_sorts_20554 = math.random(0, 1)
if choix_sorts_20554 == 0 then
pUnit:RegisterEvent('spell0_20554', 1, 1)
end
if choix_sorts_20554 == 1 then
pUnit:RegisterEvent('spell1_20554', 1, 1)
end
end

function mob20554_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20554', math.random(1500, 3000), 1)
end

function mob20554_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20554_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20554_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20554, 1, 'mob20554_Action')
RegisterUnitEvent(20554, 2, 'mob20554_Leave')
RegisterUnitEvent(20554, 3, 'mob20554_Kill')
RegisterUnitEvent(20554, 4, 'mob20554_Die')
